package com.fsoft.finaltest.dao;

import java.sql.ResultSet;
import java.sql.SQLException;
import org.springframework.jdbc.core.RowMapper;
import com.fsoft.finaltest.dto.FoodOfAnimal;

public class FoodOfAnimalMapper implements RowMapper<FoodOfAnimal>{
	
	public FoodOfAnimal mapRow(ResultSet rs, int rowNum) throws SQLException {
		  FoodOfAnimal foodOfAnimal = new FoodOfAnimal();
		  foodOfAnimal.set_animalID(rs.getInt("AnimalID"));
		  foodOfAnimal.set_foodType(rs.getString("FoodType"));
	      return foodOfAnimal;
	   }
}
